package com.lfc.flowable.service;

import com.lfc.flowable.domian.AjaxResult;
import com.lfc.flowable.domian.dto.ProcessDefinitionDTO;
import com.lfc.flowable.domian.dto.TaskInfo;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.io.InputStream;
import java.util.List;

public interface ModelService {

    AjaxResult importFile(String name, String category, MultipartFile file) throws IOException;

    AjaxResult importXml(String name, String category, InputStream in);

    AjaxResult readXml(String deployId) throws IOException;

    byte[] getProcessDiagram(String processDefinitionId) throws IOException;

    List<ProcessDefinitionDTO> getAllProcessDefinitions();

    void delete(String[] deployIds);

    List<TaskInfo> history(String processInstanceId);

}
